package com.ispeed.fluttershensu;

import java.io.FileOutputStream;
import java.io.IOException;

import gsdnsdk.PacketFlow;

/**
 * @author : timmy
 * @date : 2019/1/28
 */
public class ServiceFlow implements PacketFlow {

    FileOutputStream mFileOutputStream;

    public ServiceFlow(FileOutputStream fileOutputStream) {
        mFileOutputStream = fileOutputStream;
    }

    @Override
    public void writePacket(byte[] bytes) {
        try {
            mFileOutputStream.write(bytes);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
